package com.design.pattern.strategy.spring;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author goujian
 *
 * @description: 微信登录
 * @date 2022/3/14 9:53 上午
 */
@Slf4j
@Component
public class WeChatLogin implements LoginStrategy{
    @Override
    public LoginTypeEnum getLoginType() {
        return LoginTypeEnum.WE_CHAT;
    }

    @Override
    public void login(LoginReqDto req) {
        log.info("登录方式:{}", LoginTypeEnum.WE_CHAT.getDesc());
    }
}
